package com.itheima.test.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.test.entity.User;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author itheima
 * @since 2021-03-23
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * @description:mybatis分页
     * @author: Java
     * @date: 2021/3/27 10:42
     * @param:
     * @return: java.util.List<com.itheima.test.entity.User>
     */
    List<User> findbyPage();

    /**
     * @description:学生信息分页
     * @author: Java
     * @date: 2021/3/27 10:41
     * @param: page
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.itheima.test.entity.User>
     */
    IPage<User> selectByPageStu(IPage<User> page);
    /**
     * @description:老师信息分页
     * @author: Java
     * @date: 2021/3/27 14:30
     * @param: page
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.itheima.test.entity.User>
     */
    IPage<User> selectByPageTea(IPage<User> page);
}
